import request from '@/utils/request'

export function getConfigList(data) {
  return request({
    url: '/admin/system/config/list',
    method: 'get',
    params: data
  })
}

export function createConfig(data) {
  return request({
    url: '/admin/system/config/create',
    method: 'post',
    data: data
  })
}

export function updateConfig(data) {
  return request({
    url: '/admin/system/config/update',
    method: 'post',
    data: data
  })
}

export function deleteConfig(data) {
  return request({
    url: '/admin/system/config/delete',
    method: 'post',
    data: data
  })
}

export function getAdminWebsiteData(data) {
  return request({
    url: '/admin/system/config/adminWebsite',
    method: 'get',
    params: data
  })
}
